home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8609 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 6e | 74 70 2e 75 69 6f 2e 6e |Path: nn|tp.uio.n|
|00000010| 6f 21 6e 6f 74 61 6d 21 | 73 69 6d 65 6e 73 73 0a |o!notam!|simenss.|
|00000020| 46 72 6f 6d 3a 20 53 69 | 6d 65 6e 20 53 76 61 6c |From: Si|men Sval|
|00000030| 65 20 53 6b 6f 67 73 72 | 75 64 20 3c 73 69 6d 65 |e Skogsr|ud <sime|
|00000040| 6e 73 73 40 75 6c 72 69 | 6b 2e 75 69 6f 2e 6e 6f |nss@ulri|k.uio.no|
|00000050| 3e 0a 4e 65 77 73 67 72 | 6f 75 70 73 3a 20 63 6f |>.Newsgr|oups: co|
|00000060| 6d 70 2e 6c 61 6e 67 2e | 70 61 73 63 61 6c 2e 6d |mp.lang.|pascal.m|
|00000070| 69 73 63 2c 63 6f 6d 70 | 2e 6c 61 6e 67 2e 70 61 |isc,comp|.lang.pa|
|00000080| 73 63 61 6c 2e 62 6f 72 | 6c 61 6e 64 2c 63 6f 6d |scal.bor|land,com|
|00000090| 70 2e 70 72 6f 67 72 61 | 6d 6d 69 6e 67 2c 63 6f |p.progra|mming,co|
|000000a0| 6d 70 2e 6c 61 6e 67 2e | 6d 69 73 63 2c 63 6f 6d |mp.lang.|misc,com|
|000000b0| 70 2e 6c 61 6e 67 2e 63 | 2c 63 6f 6d 70 2e 6c 61 |p.lang.c|,comp.la|
|000000c0| 6e 67 2e 63 2b 2b 0a 53 | 75 62 6a 65 63 74 3a 20 |ng.c++.S|ubject: |
|000000d0| 52 65 3a 20 57 72 69 74 | 69 6e 67 20 61 6e 20 65 |Re: Writ|ing an e|
|000000e0| 78 70 72 65 73 73 69 6f | 6e 20 65 76 61 6c 75 61 |xpressio|n evalua|
|000000f0| 74 6f 72 0a 44 61 74 65 | 3a 20 54 68 75 2c 20 31 |tor.Date|: Thu, 1|
|00000100| 35 20 46 65 62 20 31 39 | 39 36 20 32 31 3a 33 38 |5 Feb 19|96 21:38|
|00000110| 3a 30 34 20 2b 30 31 30 | 30 0a 4f 72 67 61 6e 69 |:04 +010|0.Organi|
|00000120| 7a 61 74 69 6f 6e 3a 20 | 55 6e 69 76 65 72 73 69 |zation: |Universi|
|00000130| 74 79 20 6f 66 20 4f 73 | 6c 6f 2c 20 4e 6f 72 77 |ty of Os|lo, Norw|
|00000140| 61 79 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |ay.Messa|ge-ID: <|
|00000150| 50 69 6e 65 2e 53 47 49 | 2e 33 2e 39 31 2e 39 36 |Pine.SGI|.3.91.96|
|00000160| 30 32 31 35 32 31 33 35 | 32 31 2e 37 34 31 38 41 |02152135|21.7418A|
|00000170| 2d 31 30 30 30 30 30 40 | 6e 6f 74 61 6d 3e 0a 52 |-100000@|notam>.R|
|00000180| 65 66 65 72 65 6e 63 65 | 73 3a 20 3c 33 31 31 46 |eference|s: <311F|
|00000190| 45 42 44 38 2e 37 33 30 | 35 40 63 6e 6a 2e 64 69 |EBD8.730|5@cnj.di|
|000001a0| 67 65 78 2e 6e 65 74 3e | 20 3c 44 4d 70 75 7a 76 |gex.net>| <DMpuzv|
|000001b0| 2e 72 47 40 72 65 73 65 | 61 72 63 68 2e 61 74 74 |.rG@rese|arch.att|
|000001c0| 2e 63 6f 6d 3e 20 3c 34 | 67 30 31 31 33 24 36 67 |.com> <4|g0113$6g|
|000001d0| 65 40 77 6f 6c 66 65 2e | 77 69 6d 73 65 79 2e 63 |e@wolfe.|wimsey.c|
|000001e0| 6f 6d 3e 0a 4e 4e 54 50 | 2d 50 6f 73 74 69 6e 67 |om>.NNTP|-Posting|
|000001f0| 2d 48 6f 73 74 3a 20 6e | 6f 74 61 6d 2e 75 69 6f |-Host: n|otam.uio|
|00000200| 2e 6e 6f 0a 4d 69 6d 65 | 2d 56 65 72 73 69 6f 6e |.no.Mime|-Version|
|00000210| 3a 20 31 2e 30 0a 43 6f | 6e 74 65 6e 74 2d 54 79 |: 1.0.Co|ntent-Ty|
|00000220| 70 65 3a 20 54 45 58 54 | 2f 50 4c 41 49 4e 3b 20 |pe: TEXT|/PLAIN; |
|00000230| 63 68 61 72 73 65 74 3d | 55 53 2d 41 53 43 49 49 |charset=|US-ASCII|
|00000240| 0a 58 2d 53 65 6e 64 65 | 72 3a 20 73 69 6d 65 6e |.X-Sende|r: simen|
|00000250| 73 73 40 6e 6f 74 61 6d | 0a 49 6e 2d 52 65 70 6c |ss@notam|.In-Repl|
|00000260| 79 2d 54 6f 3a 20 3c 34 | 67 30 31 31 33 24 36 67 |y-To: <4|g0113$6g|
|00000270| 65 40 77 6f 6c 66 65 2e | 77 69 6d 73 65 79 2e 63 |e@wolfe.|wimsey.c|
|00000280| 6f 6d 3e 20 0a 0a 0a 0a | 4f 6e 20 31 35 20 46 65 |om> ....|On 15 Fe|
|00000290| 62 20 31 39 39 36 2c 20 | 54 61 6a 20 4b 68 61 74 |b 1996, |Taj Khat|
|000002a0| 74 72 61 20 77 72 6f 74 | 65 3a 0a 0a 3e 20 41 6e |tra wrot|e:..> An|
|000002b0| 64 72 65 77 20 4b 6f 65 | 6e 69 67 20 28 61 72 6b |drew Koe|nig (ark|
|000002c0| 40 72 65 73 65 61 72 63 | 68 2e 61 74 74 2e 63 6f |@researc|h.att.co|
|000002d0| 6d 29 20 77 72 6f 74 65 | 3a 0a 3e 20 3a 20 49 6e |m) wrote|:.> : In|
|000002e0| 20 61 72 74 69 63 6c 65 | 20 3c 33 31 31 46 45 42 | article| <311FEB|
|000002f0| 44 38 2e 37 33 30 35 40 | 63 6e 6a 2e 64 69 67 65 |D8.7305@|cnj.dige|
|00000300| 78 2e 6e 65 74 3e 20 41 | 72 69 73 74 6f 74 6c 65 |x.net> A|ristotle|
|00000310| 20 3c 6a 6f 68 6e 64 63 | 40 63 6e 6a 2e 64 69 67 | <johndc|@cnj.dig|
|00000320| 65 78 2e 6e 65 74 3e 20 | 77 72 69 74 65 73 3a 0a |ex.net> |writes:.|
|00000330| 3e 20 0a 3e 20 3a 20 3e | 20 44 6f 65 73 20 61 6e |> .> : >| Does an|
|00000340| 79 6f 6e 65 20 68 61 76 | 65 20 61 6e 79 20 74 69 |yone hav|e any ti|
|00000350| 70 73 20 6f 6e 20 68 6f | 77 20 74 6f 20 67 6f 20 |ps on ho|w to go |
|00000360| 61 62 6f 75 74 20 77 72 | 69 74 69 6e 67 20 61 6e |about wr|iting an|
|00000370| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 0a 3e 20 3a | express|ion .> :|
|00000380| 20 3e 20 65 76 61 6c 75 | 61 74 6f 72 28 6f 6e 65 | > evalu|ator(one|
|00000390| 20 63 6f 6d 70 6c 65 78 | 20 65 6e 6f 75 67 68 20 | complex| enough |
|000003a0| 74 6f 20 68 61 6e 64 6c | 65 20 54 72 69 67 2e 20 |to handl|e Trig. |
|000003b0| 66 75 6e 63 74 69 6f 6e | 73 29 2e 20 49 20 61 6d |function|s). I am|
|000003c0| 20 77 72 69 74 69 6e 67 | 20 61 20 0a 3e 20 3a 20 | writing| a .> : |
|000003d0| 3e 20 70 72 6f 67 72 61 | 6d 20 74 68 61 74 20 75 |> progra|m that u|
|000003e0| 73 65 73 20 65 78 70 72 | 65 73 73 69 6f 6e 20 61 |ses expr|ession a|
|000003f0| 6e 64 20 49 20 77 6f 75 | 6c 64 20 6c 69 6b 65 20 |nd I wou|ld like |
|00000400| 74 6f 20 68 61 76 65 20 | 74 68 65 20 75 73 65 72 |to have |the user|
|00000410| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 0a 3e 20 3a | be able| to .> :|
|00000420| 20 3e 20 20 65 6e 74 65 | 72 20 74 68 65 69 72 20 | > ente|r their |
|00000430| 6f 77 6e 20 65 78 70 72 | 65 73 73 69 6f 6e 73 20 |own expr|essions |
|00000440| 61 6e 64 20 68 61 76 65 | 20 6d 79 20 70 72 6f 67 |and have| my prog|
|00000450| 72 61 6d 20 69 6d 70 6c | 65 6d 65 6e 74 20 74 68 |ram impl|ement th|
|00000460| 65 6d 2e 20 41 6e 79 20 | 68 65 6c 70 20 0a 3e 20 |em. Any |help .> |
|00000470| 3a 20 3e 20 20 77 6f 75 | 6c 64 20 62 65 20 61 70 |: > wou|ld be ap|
|00000480| 70 72 65 63 69 61 74 65 | 64 2e 20 54 68 61 6e 6b |preciate|d. Thank|
|00000490| 73 20 69 6e 20 61 64 76 | 61 6e 63 65 21 0a 3e 20 |s in adv|ance!.> |
|000004a0| 0a 3e 20 3a 20 52 65 61 | 64 20 60 60 54 68 65 20 |.> : Rea|d ``The |
|000004b0| 55 4e 49 58 20 50 72 6f | 67 72 61 6d 6d 69 6e 67 |UNIX Pro|gramming|
|000004c0| 20 45 6e 76 69 72 6f 6e | 6d 65 6e 74 27 27 20 62 | Environ|ment'' b|
|000004d0| 79 20 4b 65 72 6e 69 67 | 68 61 6e 20 61 6e 64 20 |y Kernig|han and |
|000004e0| 50 69 6b 65 20 28 50 72 | 65 6e 74 69 63 65 2d 48 |Pike (Pr|entice-H|
|000004f0| 61 6c 6c 29 2e 0a 3e 20 | 0a 3e 20 54 68 65 20 63 |all)..> |.> The c|
|00000500| 6f 64 65 20 66 6f 72 20 | 74 68 65 20 63 61 6c 63 |ode for |the calc|
|00000510| 75 6c 61 74 6f 72 20 64 | 65 73 63 72 69 62 65 64 |ulator d|escribed|
|00000520| 20 69 6e 20 74 68 69 73 | 20 62 69 62 6c 65 20 69 | in this| bible i|
|00000530| 73 20 61 76 61 69 6c 61 | 62 6c 65 20 61 74 0a 3e |s availa|ble at.>|
|00000540| 20 66 74 70 3a 2f 2f 70 | 6c 61 6e 39 2e 61 74 74 | ftp://p|lan9.att|
|00000550| 2e 63 6f 6d 2f 63 73 72 | 63 2f 68 6f 63 2e 62 75 |.com/csr|c/hoc.bu|
|00000560| 6e 64 6c 65 2e 5a 0a 3e | 20 0a 0a 49 20 68 61 76 |ndle.Z.>| ..I hav|
|00000570| 65 20 61 20 65 78 70 72 | 65 73 73 69 6f 6e 20 65 |e a expr|ession e|
|00000580| 76 61 6c 75 61 74 6f 72 | 20 77 72 69 74 74 65 6e |valuator| written|
|00000590| 20 69 6e 20 54 75 72 62 | 6f 20 50 61 73 63 61 6c | in Turb|o Pascal|
|000005a0| 2c 20 69 74 20 69 73 20 | 70 61 72 74 20 6f 66 20 |, it is |part of |
|000005b0| 61 20 0a 6e 75 6d 65 72 | 69 63 61 6c 20 73 6f 6c |a .numer|ical sol|
|000005c0| 76 65 72 20 49 20 77 72 | 6f 74 65 20 77 69 74 68 |ver I wr|ote with|
|000005d0| 20 53 74 61 61 6c 65 20 | 53 63 68 75 6d 61 63 68 | Staale |Schumach|
|000005e0| 65 72 20 79 65 61 72 73 | 20 62 61 63 6b 2e 20 49 |er years| back. I|
|000005f0| 74 20 69 73 20 61 73 20 | 66 61 72 20 0a 61 73 20 |t is as |far .as |
|00000600| 49 20 63 61 6e 20 72 65 | 6d 65 6d 62 65 72 20 71 |I can re|member q|
|00000610| 75 69 74 65 20 73 74 61 | 62 6c 65 20 61 6e 64 20 |uite sta|ble and |
|00000620| 73 61 66 65 2e 20 59 6f | 75 20 63 61 6e 20 68 61 |safe. Yo|u can ha|
|00000630| 76 65 20 69 74 20 69 66 | 20 79 6f 75 20 77 61 6e |ve it if| you wan|
|00000640| 74 20 69 74 2e 20 0a 49 | 66 20 49 20 64 6f 6e 27 |t it. .I|f I don'|
|00000650| 74 20 72 65 6d 65 6d 62 | 65 72 20 77 72 6f 6e 67 |t rememb|er wrong|
|00000660| 20 69 74 20 68 61 73 20 | 73 6f 6d 65 20 61 62 69 | it has |some abi|
|00000670| 6c 69 74 79 20 74 6f 20 | 22 64 65 66 69 6e 65 22 |lity to |"define"|
|00000680| 20 66 75 6e 63 74 69 6f | 6e 73 20 61 73 77 65 6c | functio|ns aswel|
|00000690| 6c 2e 0a 0a 53 69 6d 65 | 6e 20 53 76 61 6c 65 20 |l...Sime|n Svale |
|000006a0| 53 6b 6f 67 73 72 75 64 | 0a 0a |Skogsrud|.. |
+--------+-------------------------+-------------------------+--------+--------+